package com.szw.vhrlearn.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.szw.vhrlearn.model.Menu;
import com.szw.vhrlearn.service.MenuService;

import java.util.List;

/**
 * @Description
 * @Author 申紫微
 * @Data 2020-03-31 22:38:17
 * @Version 1.0
 */
@RestController
@RequestMapping("/system/config")
public class SystemConfigController {

    @Autowired
    MenuService menuService;

    @GetMapping("/menu")
    public List<Menu> getMenusByHrId(){
        return menuService.getMenusByHrId();
    }

}
